package com.yao.excelanalyze.entity;

public class Data  {
    private String value;
    private String name;
    private String beta;
    private String key;
    private String type;

    public Data(String value, String name, String beta, String key, String type) {
        this.value = value;
        this.name = name;
        this.beta = beta;
        this.key = key;
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBeta() {
        return beta;
    }

    public void setBeta(String beta) {
        this.beta = beta;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int hashCode() {
        return this.name.hashCode()*31+this.beta.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Data) {
            Data d = (Data) obj;
            return this.name.equals(d.name)&&this.beta.equals(d.beta);
        }else {
            return false;
        }
    }

    @Override
    public String toString() {
        return "Data{" +
                "value='" + value + '\'' +
                ", name='" + name + '\'' +
                ", beta='" + beta + '\'' +
                '}';
    }
}

